package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Brand;
import com.weipai.springboot.model.Shop;
import com.weipai.springboot.model.ShopCategory;

import java.util.List;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 14:29
 */
public interface ShopCategoryDao {

    //保存
    int insert(ShopCategory shopCategory);

    //修改
    int updateByPrimaryKey(ShopCategory shopCategory);

    //查询店铺类别详情
    ShopCategory getShopCategoryById(String shopCategoryId);

    //获取数据（不包含逻辑删除的数据）
    List<Shop> selectAllByShopCategoryDel(int shopCategoryDel, String search, String sort, String way);

    //更改商品类别的状态
    int updateStatus(String shopCategoryId, Integer status);

    //批量删除
    int batchDeleteById(String[] id);
}
